package com.thejoyrun.retrofit.http;

import com.thejoyrun.retrofit.http.Interceptor.TokenInterceptor;

import okhttp3.OkHttpClient;

/**
 * Created by kkmike999 on 2016/05/08.
 *
 * .Net服务器Retrofit
 */
public class NetRetrofit extends BaseRetrofit{
	@Override
	protected String getBaseUrl() {
		if (TestApiUtil.isTestApi()) {
			return "http://kkmike999-file.b0.upaiyun.com/";
		}

		return "http://kkmike999-file.b0.upaiyun.com/";
	}

	@Override
	protected OkHttpClient.Builder getOkHttpBuilder() {
		return super.getOkHttpBuilder().addInterceptor(new TokenInterceptor());
	}
}
